﻿namespace YiShop.System.Controllers
{
    [Route("system/post")]
    public class SysPostController : ControllerBase
    {
        private readonly SysPostService _sysPostService;
        public SysPostController(SysPostService sysPostService)
        {
            _sysPostService = sysPostService;
        }
        /// <summary>
        /// 查询岗位信息表列表
        /// </summary>
        [HttpGet("list")]
        public async Task<SqlSugarPagedList<SysPostDto>> GetSysPostList([FromQuery] SysPostDto dto)
        {
            return await _sysPostService.GetDtoPagedListAsync(dto);
        }
    }
}